* window.c: Integer overflow fixes.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Sep 2011 18:46:51 +0000 (11:46 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 4 Sep 2011 18:46:51 +0000 (11:46 -0700)
commit3ee3109988a825520768b3f880af32acfe451c1e
treee91d45ac8b901cd2d6ae6e794f00c2529e7fd600
parent4fc4a8fa3ff3dc19f8d270a43e3955a9d4b84868
* window.c: Integer overflow fixes.

(window_scroll_line_based, Frecenter):
Check that an Emacs fixnum is in range before assigning it to 'int'.
(Frecenter, Fmove_to_window_line): Use EMACS_INT, not int, for
values converted from Emacs fixnums.
(Frecenter): Don't wrap around a line count if it is out of 'int'
range; instead, treat it as an extreme value.
(Fset_window_configuration, compare_window_configurations):
Use ptrdiff_t, not int, for index that might exceed 2 GiB.
src/ChangeLog
src/window.c